import api from './auth.js'

// 获取轮播图列表
export const getBannerList = () => {
  return api.get('/banner/list')
}

// 上传轮播图
export const uploadBanner = (formData) => {
  return api.post('/banner/upload', formData, {
    headers: {
      'Content-Type': 'multipart/form-data'
    }
  })
}

// 删除轮播图
export const deleteBanner = (url) => {
  return api.delete('/banner/delete', {
    params: { url }
  })
} 